package com.sanploy.fed.push.service.impl;

import com.sanploy.fed.push.bean.ZkyUser;
import com.sanploy.fed.push.dao.UserDao;
import com.sanploy.fed.push.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/4/7.
 */
@Service
public class UserServImpl implements UserService {

    @Autowired
    UserDao userDao;
    @Override
    public ZkyUser judgeLogin(String name, String pwd) {
        return userDao.judgeLogin(name,pwd);
    }

    @Override
    public ZkyUser judgeToken(String token) {
        return userDao.judgeToken(token);
    }

    @Override
    public void updateUserToken(String token, long id) {

        userDao.updateToken(token, id);
    }

    @Override
    public int insertUser(String loginName, String loginPwd, String nickName) {
        return userDao.insertUser(loginName,loginPwd,nickName);
    }


}
